﻿using Event.Models;

namespace Event.Services;

public interface IPoetryService {
    public event EventHandler<PoetryAddedEventArgs> PoetryAdded;

    public IEnumerable<Poetry> GetPoetries();

    public void AddPoetry(Poetry poetry);
}

public class PoetryAddedEventArgs : EventArgs {
    public Poetry Poetry { get; }

    public PoetryAddedEventArgs(Poetry poetry) => Poetry = poetry;
}